'use strict'

module.exports = appInfo => {
  const config = (exports = {})

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1532011221256_8174'

  config.sequelize = {
    dialect: 'mysql', // support: mysql, mariadb, postgres, mssql
    database: 'yc-group',
    host: 'localhost',
    port: '3306',
    username: 'root',
    password: 'root',
    timezone: '+08:00'
  }

  config.cors = {
    origin: '*',
    allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH'
  }

  config.token = ''
  config.mediaUrl = ''

  config.sendcloud = {
    apiUser: '',
    apiKey: '',
    from: '',
    to: ''
  }

  config.security = {
    csrf: {
      enable: false
    }
  }

  config.middleware = []

  return config
}
